package com.wisedu.w5autocode.wizards;

import java.util.List;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

public class EntityContentProvider implements IStructuredContentProvider {

	@Override
	public void dispose() {

	}

	@Override
	public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {

	}

	@Override
	public Object[] getElements(Object element) {
		if (element instanceof List)
			return ((List<?>) element).toArray();
		else
			return new Object[0];
	}


}
